export interface enumItem {
    label: string,
    value: string | number,
}

/** 启用状态 **/
export const enableStatus = [
    {label: "启用", value: 1},
    {label: "禁用", value: 0}
]

/** 授权状态 **/
export const authorizeStatus = [
    {label: "可授权", value: 1},
    {label: "不可授权", value: 0}
]

/** 开关状态 **/
export const switchStatus = [
    {label: "开启", value: true},
    {label: "关闭", value: false}
]

/** 楼宇开关状态 **/
export const buildingStatus = [
    {label: "开启", value: 1},
    {label: "关闭", value: 0}
]
/** 学期状态 **/
export const termStatus = [
    {label: '未开始', value: 0},
    {label: '进行中', value: 1},
    {label: '已结束', value: 2}
]

/** 学期状态 **/
// export const termFormStatus = [
//     {label: "未开始", value: 0},
//     {label: "进行中", value: 1}
// ]

/** 班级新增状态 **/
export const classAddFormStatus = [
    {label: "启用", value: 1},
    {label: "停用", value: 0}
]

/** 楼宇类型 **/
export const buildingType = [
    {label: "寝室楼", value: 1},
    {label: "教学楼", value: 2},
    {label: "行政楼", value: 3},
    {label: "综合楼", value: 4},
    {label: "其他", value: 9},
]

/** 版本是否强制更新 **/
export const appForceUpdate = [
    {label: "是", value: 1},
    {label: "否", value: 0},
]

/** 版本type **/
export const appType = [
    {label: "IOS", value: 1},
    {label: "安卓", value: 2},
]

/** 学籍状态 **/
export const studentStatus = [
    {
        label: "未报到",
        value: 0
    },
    {
        label: "在籍",
        value: 1
    },
    {
        label: "保留学籍",
        value: 2
    },
    {
        label: "休学",
        value: 3
    },
    {
        label: "退学",
        value: 4
    },
    {
        label: "毕业",
        value: 5
    },
    {
        label: "结业",
        value: 6
    },
    {
        label: "入伍",
        value: 7
    },
    {
        label: "已经报到",
        value: 9
    },
]
export const reviseStatusMap: Record<number, string> = {
    0: '未报到',
    1: '在籍',
    2: '保留学籍',
    3: '休学',
    4: '退学',
    5: '毕业',
    6: '结业',
    7: '入伍',
    9: '已经报到',
};

export const statusMap = [
    {
        label: "未报到",
        value: 'WBD'
    },
    {
        label: "在籍",
        value: 'ZJ'
    },
    {
        label: "保留学籍",
        value: 'BLXJ'
    },
    {
        label: "休学",
        value: 'XX'
    },
    {
        label: "退学",
        value: 'TX'
    },
    {
        label: "毕业",
        value: 'BY'
    },
    {
        label: "结业",
        value: 'JY'
    },
    {
        label: "入伍",
        value: 'RW'
    },
    {
        label: "已经报到",
        value: 'YBD'
    },
]

/** 政治面貌 **/
export const polityIdentity = [
    {
        label: "群众",
        value: 1
    },
    {
        label: "团员",
        value: 2
    },
    {
        label: "团员（积极分子）",
        value: 3
    },
    {
        label: "团员（预备党员）",
        value: 4
    },
    {
        label: "团员（党员）",
        value: 5
    }
]

export const polityIdentityText: Record<number, string> = {
    1: '群众',
    2: '团员',
    3: '团员（积极分子）',
    4: '团员（预备党员）',
    5: '团员（党员）'
};

/** 实名认证 **/
export const hasAuthList = [
    {
        value: 1,
        label: '已实名认证',
    },
    {
        value: 0,
        label: '未实名认证',
    }
]

/** 性别 **/
export const sexData = [
    {
        value: 1,
        label: '男',
    },
    {
        value: 2,
        label: '女',
    }
]

/** 校外实习 **/
export const practiceData = [
    {
        value: 1,
        label: '是',
    },
    {
        value: 0,
        label: '否',
    }
]


/** 所属模块 **/
export const moduleVal = [
    {value: 'JXRJ', label: '智慧教学软件'},
    {value: 'XYYY', label: '智慧校园应用'}
]
/** 开发语言 **/
export const languageData = [
    {value: 'JAVA', label: 'JAVA'},
    {value: 'PHP', label: 'PHP'}
]
/** 发布范围 **/
export const scopeData = [
    {value: 'WEB', label: 'WEB'},
    {value: 'APP', label: 'APP'}

]

/** 阅读状态 **/
export const readStatus = [
    {
        value: 1,
        label: '已读',
    },
    {
        value: 0,
        label: '未读',
    }
]

/** 菜单类型 **/
export const menuType = [
    {
        value: "M",
        label: '目录',
    },
    {
        value: "C",
        label: '菜单',
    },
    {
        value: "F",
        label: '按钮',
    }
]
/** 设备状态 **/
export const statusTag = [
    {value: 1, label: '在线'},
    {value: 0, label: '离线'}
]

/** 是否可见 **/
export const hiddenType = [
    {
        value: false,
        label: '是',
    },
    {
        value: true,
        label: "否",
    }
]

/** 是否显示 **/
export const showType = [
    {
        value: 1,
        label: "是",
    },
    {
        value: 0,
        label: '否',
    }
]

/** 是否显示(布尔值) **/
export const showBoolType = [
    {
        value: true,
        label: "是",
    },
    {
        value: false,
        label: '否',
    }
]

/** 是否强制阅读 **/
export const forcedReadingType = [
    {
        value: 1,
        label: "是",
    },
    {
        value: 0,
        label: '否',
    }
]

/** 会议通知是否发送短信状态 **/
export const meetSendStatus = [
    {label: "是", value: true},
    {label: "否", value: false},
]

/** 审核状态 **/
export const approveStatus = [
    {label: "待审批", value: 0},
    {label: "审批通过", value: 1},
    {label: "审批驳回", value: 2},
]

/** 校友圈内容类型 **/
export const contentType = [
    {label: "视频", value: 1},
    {label: "图片", value: 2},
    {label: "纯文字", value: 3},
]


